class {
  onMount() {
    window.child = this;
  }
}

<div key="div">Child</div>
<nested-child key="nested" no-update/>
